package com.tansty.web.exception;

import lombok.AllArgsConstructor;

@AllArgsConstructor

public enum Errors {
    NOT_FOUND_PET("找不到宠物名",1001),
    NOT_FOUND_USER("找不到用户名",1002),
    PET_IS_BUY("该宠物已经被购买",1003);
    String msg;
    Integer code;

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
